// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

//
// Vaptcha ID
export const vaptchaID = config.vaptchaID
// Vaptcha离线验证接口
export const vaptchaOffline = `${config.baseApi}/common/vaptcha/offline`
// 文件上传接口
export const uploadFile = `${config.baseApi}/upload/file`
//导入
export const importExcel = `${config.baseApi}/upload/importExcel`
// 验证码渲染图片接口
export const drawCodeImage = `${config.baseApi}/common/captcha/draw/`
// 获取菜单
export const getMenuList = `${config.baseApi}/permission/getMenuList`
// 获取数据字典
export const getDictData = `${config.baseApi}/dictData/getByType/`
// Websocket
export const ws = `${config.baseApi}/ws`



// 登陆
export const login = (params) => {
    return postNoAuthRequest('/user/backLogin', params)
}
// 获取用户登录信息
export const userInfo = (params) => {
    return getRequest('/user/info', params)
}
// 注册
export const regist = (params) => {
    return postNoAuthRequest('/user/regist', params)
}
// 初始化验证码
export const initCaptcha = (params) => {
    return getNoAuthRequest('/common/captcha/init', params)
}
// 发送登录短信验证码
export const sendLoginSms = (mobile, params) => {
    return getNoAuthRequest(`/common/captcha/sendLoginSms/${mobile}`, params)
}
// 发送注册短信验证码
export const sendRegistSms = (mobile, params) => {
    return getNoAuthRequest(`/common/captcha/sendRegistSms/${mobile}`, params)
}
// 发送重置密码短信验证码
export const sendResetSms = (mobile, params) => {
    return getNoAuthRequest(`/common/captcha/sendResetSms/${mobile}`, params)
}
// 发送修改绑定手机短信验证码
export const sendEditMobileSms = (mobile, params) => {
    return getRequest(`/common/captcha/sendEditMobileSms/${mobile}`, params)
}
// 通过手机重置密码
export const resetByMobile = (params) => {
    return postNoAuthRequest('/user/resetByMobile', params)
}
// 发送重置密码邮件验证码
export const sendResetEmail = (email, params) => {
    return getNoAuthRequest(`/email/sendResetCode/${email}`, params)
}
// 发送修改绑定邮件验证码
export const sendEditEmail = (email, params) => {
    return getRequest(`/email/sendEditCode/${email}`, params)
}
// 通过邮件重置密码
export const resetByEmail = (params) => {
    return postNoAuthRequest('/email/resetByEmail', params)
}
// 短信验证码登录
export const smsLogin = (params) => {
    return postRequest('/user/smsLogin', params)
}
// IP天气信息
export const ipInfo = (params) => {
    return getRequest('/common/ip/info', params)
}
// 个人中心编辑
export const userInfoEdit = (params) => {
    return postRequest('/user/edit', params)
}
// 个人中心发送修改邮箱验证邮件
export const sendCodeEmail = (email, params) => {
    return getRequest(`/email/sendCode/${email}`, params)
}
// 个人中心发送修改邮箱验证邮件
export const editEmail = (params) => {
    return postRequest('/email/editEmail', params)
}
// 个人中心修改密码
export const changePass = (params) => {
    return postRequest('/user/modifyPass', params)
}
// 个人中心修改手机
export const changeMobile = (params) => {
    return postRequest('/user/changeMobile', params)
}
// 解锁
export const unlock = (params) => {
    return postRequest('/user/unlock', params)
}
// 获取公告
export const getNotice = (params) => {
    return getNoAuthRequest('/setting/notice', params)
}



// github登录
export const githubLogin = (params) => {
    return getNoAuthRequest('/social/github/login', params)
}
// qq登录
export const qqLogin = (params) => {
    return getNoAuthRequest('/social/qq/login', params)
}
// 微博登录
export const weiboLogin = (params) => {
    return getNoAuthRequest('/social/weibo/login', params)
}
// 微信登录
export const wechatLogin = (params) => {
    return getNoAuthRequest('/social/wechat/login', params)
}
// 钉钉登录
export const dingdingLogin = (params) => {
    return getNoAuthRequest('/social/dingding/login', params)
}
// 企业微信登录
export const workwechatLogin = (params) => {
    return getNoAuthRequest('/social/workwechat/login', params)
}
// 绑定账号
export const relate = (params) => {
    return postRequest('/social/relate', params)
}
// 获取JWT
export const getJWT = (params) => {
    return getNoAuthRequest('/social/getJWT', params)
}



// 获取绑定账号信息
export const relatedInfo = (username, params) => {
    return getRequest(`/relate/getRelatedInfo/${username}`, params)
}
// 解绑账号
export const unRelate = (params) => {
    return postRequest('/relate/delByIds', params)
}
// 分页获取绑定账号信息
export const getRelatedListData = (params) => {
    return getRequest('/relate/findByCondition', params)
}



// 获取用户数据 多条件
export const getUserListData = (params) => {
    return getRequest('/user/getByCondition', params)
}
// 通过用户名搜索
export const searchUserByName = (username, params) => {
    return getRequest('/user/searchByName/'+username, params)
}
// 获取全部用户数据
export const getAllUserData = (params) => {
    return getRequest('/user/getAll', params)
}
// 通过部门获取全部用户数据
export const getUserByDepartmentId = (id, params) => {
    return getRequest(`/user/getByDepartmentId/${id}`, params)
}
// 添加用户
export const addUser = (params) => {
    return postRequest('/user/admin/addManger', params)
}
// export const addUser = (params) => {
//     return postRequest('/user/admin/add', params)
// }


// 编辑用户
export const editUser = (params) => {
    return postRequest('/user/admin/editManger', params)
}
// export const editUser = (params) => {
//     return postRequest('/user/admin/edit', params)
// }
// 启用用户
export const enableUser = (id, params) => {
    return postRequest(`/user/admin/enable/${id}`, params)
}
// 禁用用户
export const disableUser = (id, params) => {
    return postRequest(`/user/admin/disable/${id}`, params)
}
// 删除用户
export const deleteUser = (params) => {
    return postRequest('/user/delByIds', params)
}
// 导入用户
export const importUserData = (params) => {
    return postBodyRequest('/user/importData', params)
}
// 重置用户密码
export const resetUserPass = (params) => {
    return postRequest('/user/resetPass', params)
}



// 获取一级部门
export const initDepartment = (params) => {
    return getRequest('/department/getByParentId/0', params)
}
// 加载部门子级数据
export const loadDepartment = (id, params) => {
    return getRequest(`/department/getByParentId/${id}`, params)
}
// 添加部门
export const addDepartment = (params) => {
    return postRequest('/department/add', params)
}
// 编辑部门
export const editDepartment = (params) => {
    return postRequest('/department/edit', params)
}
// 删除部门
export const deleteDepartment = (params) => {
    return postRequest('/department/delByIds', params)
}
// 搜索部门
export const searchDepartment = (params) => {
    return getRequest('/department/search', params)
}



// 获取全部角色数据
export const getAllRoleList = (params) => {
    return getRequest('/role/getAllList', params)
}
// 分页获取角色数据
export const getRoleList = (params) => {
    return getRequest('/role/getAllByPage', params)
}
// 添加角色
export const addRole = (params) => {
    return postRequest('/role/save', params)
}
// 编辑角色
export const editRole = (params) => {
    return postRequest('/role/edit', params)
}
// 设为或取消注册角色
export const setDefaultRole = (params) => {
    return postRequest('/role/setDefault', params)
}
// 分配角色权限
export const editRolePerm = (params) => {
    return postRequest('/role/editRolePerm', params)
}
// 分配角色数据权限
export const editRoleDep = (params) => {
    return postRequest('/role/editRoleDep', params)
}
// 删除角色
export const deleteRole = (params) => {
    return postRequest('/role/delByIds', params)
}



// 获取全部权限数据
export const getAllPermissionList = (params) => {
    return getRequest('/permission/getAllList', params)
}
// 加载数据
export const loadPermission = (id, params) => {
    return getRequest(`/permission/getByParentId/${id}`, params)
}
// 添加权限
export const addPermission = (params) => {
    return postRequest('/permission/add', params)
}
// 编辑权限
export const editPermission = (params) => {
    return postRequest('/permission/edit', params)
}
// 删除权限
export const deletePermission = (params) => {
    return postRequest('/permission/delByIds', params)
}
// 搜索权限
export const searchPermission = (params) => {
    return getRequest('/permission/search', params)
}



// 获取全部字典
export const getAllDictList = (params) => {
    return getRequest('/dict/getAll', params)
}
// 添加字典
export const addDict = (params) => {
    return postRequest('/dict/add', params)
}
// 编辑字典
export const editDict = (params) => {
    return postRequest('/dict/edit', params)
}
// 删除字典
export const deleteDict = (params) => {
    return postRequest('/dict/delByIds', params)
}
// 搜索字典
export const searchDict = (params) => {
    return getRequest('/dict/search', params)
}
// 获取全部字典数据
export const getAllDictDataList = (params) => {
    return getRequest('/dictData/getByCondition', params)
}
// 添加字典数据
export const addDictData = (params) => {
    return postRequest('/dictData/add', params)
}
// 编辑字典数据
export const editDictData = (params) => {
    return postRequest('/dictData/edit', params)
}
// 删除字典数据
export const deleteData = (params) => {
    return postRequest('/dictData/delByIds', params)
}
// 通过类型获取字典数据
export const getDictDataByType = (type, params) => {
    return getRequest(`/dictData/getByType/${type}`, params)
}



// 分页获取日志数据
export const getLogListData = (params) => {
    return getRequest('/log/getAllByPage', params)
}
// 删除日志
export const deleteLog = (params) => {
    return postRequest('/log/delByIds', params)
}
// 清空日志
export const deleteAllLog = (params) => {
    return postRequest('/log/delAll', params)
}


// 分页获取Redis数据
export const getRedisData = (params) => {
    return getRequest('/redis/getAllByPage', params)
}
// 通过key获取Redis信息
export const getRedisByKey = (key, params) => {
    return getRequest(`/redis/getByKey/${key}`, params)
}
// 获取Redis键值数量
export const getRedisKeySize = (params) => {
    return getRequest('/redis/getKeySize', params)
}
// 获取Redis内存
export const getRedisMemory = (params) => {
    return getRequest('/redis/getMemory', params)
}
// 获取Redis信息
export const getRedisInfo = (params) => {
    return getRequest('/redis/info', params)
}
// 添加编辑Redis
export const saveRedis = (params) => {
    return postRequest('/redis/save', params)
}
// 删除Redis
export const deleteRedis = (params) => {
    return postRequest('/redis/delByKeys', params)
}
// 清空Redis
export const deleteAllRedis = (params) => {
    return postRequest('/redis/delAll', params)
}



// 分页获取定时任务数据
export const getQuartzListData = (params) => {
    return getRequest('/quartzJob/getAllByPage', params)
}
// 添加定时任务
export const addQuartz = (params) => {
    return postRequest('/quartzJob/add', params)
}
// 编辑定时任务
export const editQuartz = (params) => {
    return postRequest('/quartzJob/edit', params)
}
// 暂停定时任务
export const pauseQuartz = (params) => {
    return postRequest('/quartzJob/pause', params)
}
// 恢复定时任务
export const resumeQuartz = (params) => {
    return postRequest('/quartzJob/resume', params)
}
// 删除定时任务
export const deleteQuartz = (params) => {
    return postRequest('/quartzJob/delByIds', params)
}



// 分页获取消息数据
export const getMessageData = (params) => {
    return getRequest('/message/getByCondition', params)
}
// 获取单个消息详情
export const getMessageDataById = (id, params) => {
    return getRequest(`/message/get/${id}`, params)
}
// 添加消息
export const addMessage = (params) => {
    return postRequest('/message/add', params)
}
// 编辑消息
export const editMessage = (params) => {
    return postRequest('/message/edit', params)
}
// 删除消息
export const deleteMessage = (params) => {
    return postRequest('/message/delByIds', params)
}
// 分页获取消息推送数据
export const getMessageSendData = (params) => {
    return getRequest('/messageSend/getByCondition', params)
}
// 编辑发送消息
export const editMessageSend = (params) => {
    return postRequest('/messageSend/edit', params)
}
// 删除发送消息
export const deleteMessageSend = (params) => {
    return postRequest('/messageSend/delByIds', params)
}
// 批量处理消息
export const allMessageSend = (type, params) => {
    return getRequest(`/messageSend/all/${type}`, params)
}



// 分页获取文件数据
export const getFileListData = (params) => {
    return getRequest('/file/getByCondition', params)
}
// 复制文件
export const copyFile = (params) => {
    return postRequest('/file/copy', params)
}
// 重命名文件
export const renameFile = (params) => {
    return postRequest('/file/rename', params)
}
// 删除文件
export const deleteFile = (params) => {
    return postRequest('/file/delete', params)
}
// 下载文件
export const aliDownloadFile = (fKey, params) => {
    return getRequest(`/file/ali/download/${fKey}`, params)
}


// 检查oss配置
export const checkOssSet = (params) => {
    return getRequest('/setting/oss/check', params)
}
// 检查oss配置
export const checkSmsSet = (params) => {
    return getRequest('/setting/sms/check', params)
}
// 获取oss配置
export const getOssSet = (serviceName, params) => {
    return getRequest(`/setting/oss/${serviceName}`, params)
}
// 编辑oss配置
export const editOssSet = (params) => {
    return postRequest('/setting/oss/set', params)
}
// 获取sms配置
export const getSmsSet = (serviceName, params) => {
    return getRequest(`/setting/sms/${serviceName}`, params)
}
// 获取sms模板code
export const getSmsTemplateCode = (serviceName, type, params) => {
    return getRequest(`/setting/sms/templateCode/${serviceName}/${type}`, params)
}
// 编辑sms配置
export const editSmsSet = (params) => {
    return postRequest('/setting/sms/set', params)
}
// 获取email配置
export const getEmailSet = (serviceName, params) => {
    return getRequest('/setting/email', params)
}
// 编辑email配置
export const editEmailSet = (params) => {
    return postRequest('/setting/email/set', params)
}
// 获取vaptcha配置
export const getVaptchaSet = (params) => {
    return getRequest('/setting/vaptcha', params)
}
// 编辑vaptcha配置
export const editVaptchaSet = (params) => {
    return postRequest('/setting/vaptcha/set', params)
}
// 获取vaptcha配置
export const getOtherSet = (params) => {
    return getRequest('/setting/other', params)
}
// 编辑other配置
export const editOtherSet = (params) => {
    return postRequest('/setting/other/set', params)
}
// 获取notice配置
export const getNoticeSet = (params) => {
    return getRequest('/setting/notice', params)
}
// 编辑notice配置
export const editNoticeSet = (params) => {
    return postRequest('/setting/notice/set', params)
}
// 获取autoChat配置
export const getAutoChatSet = (params) => {
    return getRequest('/setting/autoChat', params)
}
// 编辑autoChat配置
export const editAutoChatSet = (params) => {
    return postRequest('/setting/autoChat/set', params)
}
// 查看私密配置
export const seeSecretSet = (settingName, params) => {
    return getRequest(`/setting/seeSecret/${settingName}`, params)
}



// 表格生成
export const generateTable = (name, rowNum, params) => {
    return postBodyRequest(`/generate/table/${name}/${rowNum}`, params)
}
// 树生成
export const generateTree = (name, rowNum, enableTable, params) => {
    return postBodyRequest(`/generate/tree/${name}/${rowNum}/${enableTable}`, params)
}
// 通过实体类生成Vue代码Json数据
export const getEntityData = (params) => {
    return getRequest('/generate/getEntityData', params)
}



// 分页获取禁用词
export const getStopWordData = (params) => {
    return getRequest('/stopWord/getByCondition', params)
}
// 添加禁用词
export const addStopWord = (params) => {
    return postRequest('/stopWord/save', params)
}
// 编辑禁用词
export const editStopWord = (params) => {
    return postRequest('/stopWord/edit', params)
}
// 删除禁用词
export const deleteStopWord = (params) => {
    return postRequest('/stopWord/delByIds', params)
}



// base64上传
export const base64Upload = (params) => {
    return postRequest('/upload/file', params)
}

/**
 * 首创接口
 */

//首页管理-主控台统计
export const getHomePageStatisticVo = (params) => {
    return getRequest('/statistic/getHomePageStatisticVo', params)
}
//75 统计-储值消费统计
export const getRechargeStatisticByCondition = (params) => {
    return getRequest('/statistic/getRechargeStatisticByCondition', params)
}
//78 统计-会议室订单统计
export const getOrderStatisticByCondition = (params) => {
    return getRequest('/statistic/getOrderStatisticByCondition', params)
}
//统计-扇形统计
export const getChartStatistic = (params) => {
    return getRequest('/statistic/getChartStatistic', params)
}
//77 统计-柱形统计
export const getColumnStatistic = (params) => {
    return getRequest('/statistic/getColumnStatistic', params)
}
//81 统计-激活记录
export const getscOrderActiveByCondition = (params) => {
    return getRequest('/scOrderActive/getByCondition', params)
}
//69 组织管理-商铺信息-商品统计
export const getProductStatistic = (params) => {
    return getRequest('/scOrder/getProductStatistic', params)
}

//首页管理-小程序首页设置-查询
export const appletGetAll = (params) => {
    return getRequest('/scFuncBar/getAll', params)
}
//首页管理-小程序首页设置-置顶
export const appletPlaceTop = (params) => {
    return postRequest('/scFuncBar/placeTop', params)
}
//首页管理-小程序首页设置-向上一级
export const appletUp = (params) => {
    return postRequest('/scFuncBar/up', params)
}

//组织管理
//企业详情
export const getCompanyDetailById = (params) => {
    return getRequest('/scCompany/get/'+params.companyId, params)
}
//企业注册-获取公司规模
export const getCompanyScale = (params) => {
    return getRequest('/dictData/getByType/company_scale', params)
}
//企业注册-企业类型查询（企业性质）
export const getFindAll = (params) => {
    return getRequest('/scCompanyType/findAll', params)
}
//企业注册-行业类型查询
export const getCompanyType = (params) => {
    return getRequest('/dictData/getByType/company_type', params)
}
//企业注册-角色管理-身份类型 角色管理-身份类型
export const getScParkRoleAll = (params) => {
    return getRequest('/scParkRole/getAll', params)
    
}

//企业注册
export const companyAdd = (apiType,params) => {
    return postRequest(`/scCompany/${apiType}`, params)
}
//企业查询
export const getAllCompany = (params) => {
    return getRequest('/scCompany/getByCondition', params)
}
//编辑企业
export const editCompany=(params)=>{
    return postRequest(`/scUser/editCompany`, params)
}
//企业禁用启用
export const scCompanyUpdStatusById = (params) => {
    return postRequest('/scCompany/updStatusById', params)
}
//企业类型管理-添加
export const companyTypeAdd = (params) => {
    return postRequest('/scCompanyType/add', params)
}
//街道添加
export const streetAdd = (params) => {
    return postRequest('/scStreet/add', params)
}
//街道修改
export const streetEdit = (params) => {
    return postRequest('/scStreet/update', params)
}
//组织管理-街道社区管理-分页查询
export const getscStreetByCondition = (params) => {
    return getRequest('/scStreet/getByCondition', params)
}

//商铺进出大门-查询
export const getScInOutRule = (params) => {
    return getRequest('/scInOutRule/getByCondition', params)
}
//商铺进出大门-添加
export const scInOutRuleAdd = (params) => {
    return postRequest('/scInOutRule/add', params)
}

//企业信息-历史订单
export const getScOrderByCondition = (params) => {
    return getRequest('/scOrder/getByCondition', params)
}
export const scOrderRefund= (params) => {
    return postRequest('/scOrder/order/refund', params)
}
export const getRefundInfo = (params) => {
    return getRequest('/uniapp/order/getRefundInfo/'+params.id, {})
}
//云打印

//web打印
export const getfilepageById = (params) => {
    return getRequest('/file/page', params)
}
//打印机管理-查询
export const getScPrintByCondition = (params) => {
    return getRequest('/scPrint/getByCondition', params)
}
//打印机-更新启用/禁用状态
export const scPrintUpdStatusById = (params) => {
    return postRequest('/scPrint/updStatusById', params)
}
//积分管理-积分获得-查询
export const getScIntegralGetAll = (params) => {
    return getRequest('/scIntegralGet/getAll', params)
}
//获取单条积分获得详情
export const getScIntegralGetDetail = (params) => {
    return getRequest('/scIntegralGet/get/'+params.id)
}


//积分管理-积分消费规则-查询
export const scIntegralExpenseGetAll = (params) => {
    return getRequest('/scIntegralExpense/getAll', params)
}

//获取商家
export const scCompanyGetMerch = (params) => {
    return getRequest('/scCompany/getMerch', params)
}
//获取商家所有商品
export const scProductGetProductByCompanyId = (params) => {
    return getRequest('/scProduct/getProductByCompanyId', params)
}

//打印机管理-添加
export const scPrintAdd = (apiType,params) => {
    return postRequest(`/scPrint/${apiType}`, params)
}
//打印机管理-获取所有
export const getscPrintAll = (params) => {
    return getRequest('/scPrint/getAll', params)
}
//提交打印信息
export const scPrintRecordAdd = (params) => {
    return postRequest('/scPrintRecord/add', params)
}


//角色管理
//角色管理-须知管理-查询
export const getScRuleGuideByCondition = (params) => {
    return getRequest('/scRuleGuide/getByCondition', params)
}
//角色管理-查询
export const getScParkRoleByCondition = (params) => {
    return getRequest('/scParkRole/getByCondition', params)
}
//角色管理-身份类型
export const getIdenType = (params) => {
    return getRequest('/dictData/getByType/iden_type', params)
}
//角色管理-须知管理-更新启用/禁用状态
export const scRuleGuideUpdStatu = (params) => {
    return postRequest('/scParkRole/updStatusById', params)
}
//角色管理-须知管理-添加
export const scRuleGuideAdd = (apiType, params) => {
    return postRequest(`/scRuleGuide/${apiType}`, params)
}
//角色管理-添加-修改
export const scParkRoleAdd = (apiType, params) => {
    return postRequest(`/scParkRole/${apiType}`, params)
}

//积分管理-积分类型管理-查询
export const getScIntegralTypegetAll = (params) => {
    return getRequest('/scIntegralType/getAll', params)
}

//积分管理-积分类型管理-添加
export const scIntegralTypeAdd = (params) => {
    return postRequest('/scIntegralType/add', params)
}
//添加云打印积分
export const addPrintIntegral = (params) => {
    return postRequest('/scCompany/addPrintIntegral', params)
}
//添加会议室积分
export const addMeetIntegral = (params) => {
    return postRequest('/scCompany/addMeetIntegral', params)
}
//积分管理-积分清零类型管理-查询 全部
export const getScIntegralCleangetAll = (params) => {
    return getRequest('/scIntegralClean/getAll', params)
}
//共享会议室
//会议室管理-查询
export const getScMeetRoomByCondition = (params) => {
    return getRequest('/scMeetRoom/getByCondition', params)
}
//会议室管理-更新启用/禁用状态
export const scMeetRoomUpdStatusById = (params) => {
    return postRequest('/scMeetRoom/updStatusById', params)
}
//获取所有会议室服务
export const getScMeetRoomServeAll = (params) => {
    return getRequest('/scMeetRoomServe/getAll', params)
}
//会议室管理-添加
export const scMeetRoomAdd = (apiType,params) => {
    return postRequest(`/scMeetRoom/${apiType}`, params)
}
//会议室管理-设置
export const scMeetRoomSetAdd = (params) => {
    return postRequest('/scMeetRoomSet/add', params)
}
//共享会议室-服务管理-查询
export const getScMeetRoomServeByCondition = (params) => {
    return getRequest('/scMeetRoomServe/getByCondition', params)
}
//共享会议室-服务管理-添加
export const scMeetRoomServeAdd = (params) => {
    return postRequest('/scMeetRoomServe/add', params)
}
//共享会议室-服务管理-禁用和启用
export const scMeetRoomServeUpdStatusById = (params) => {
    return postRequest('/scMeetRoomServe/updStatusById', params)
}


//场地预约

//场地预约-查询
export const getScSiteByCondition = (params) => {
    return getRequest('/scSite/getByCondition', params)
}
//场地预约添加
export const scSiteAdd = (apiType,params) => {
    return postRequest(`/scSite/${apiType}`, params)
}
//场地预约-更新启用/禁用状态
export const scSiteupdStatusById = (params) => {
    return postRequest('/scSite/updStatusById', params)
}
//获取所有场地
export const getScSiteAll = (params) => {
    return getRequest('/scSite/getAll', params)
}
//场地管理-订单调整
export const scOrderAdjust = (params) => {
    return postRequest('/scOrder/order/adjust', params)
}
//场地管理-支付定金
export const scOrderPayDeposit = (params) => {
    return postRequest('/scOrder/order/payDeposit', params)
}
//场地管理-订单取消
export const scOrderManageCancel = (params) => {
    return postRequest('/scOrder/order/manageCancel', params)
}
//获取会员角色名称
export const getScParkRoleMemberRole = (params) => {
    return getRequest('/scParkRole/getMemberRole', params)
}
export const setMemberApi = (params) => {
    return postRequest('/scUser/'+params.api, params.params)
}
//活动预约

//活动预约-查询
export const getScActivityByCondition = (params) => {
    return getRequest('/scActivity/getByCondition', params)
}
//活动预约添加
export const scActivityAdd = (apiType,params) => {
    return postRequest(`/scActivity/${apiType}`, params)
}
//活动预约-更新启用/禁用状态
export const scActivityupdStatusById = (params) => {
    return postRequest('/scActivity/updStatusById', params)
}
//活动预约-更新上架/下架状态
export const scActivityupdShelvesStatusById = (params) => {
    return postRequest('/scActivity/updShelvesStatusById', params)
}
//73 活动预约-活动管理-更新推荐状态
export const scActivityupdRecommandStatusById = (params) => {
    return postRequest('/scActivity/updRecommandStatusById', params)
}
//积分管理
//积分管理-积分获取-查询
export const scIntegralGetgetByCondition = (params) => {
    return getRequest('/scIntegralGet/getByCondition', params)
}
//积分管理-积分获取-添加
export const scIntegralGetAdd = (params) => {
    return postRequest('/scIntegralGet/add', params)
}
//积分管理-积分获取-更新
export const scIntegralGetupdStatusById = (params) => {
    return postRequest('/scIntegralGet/updStatusById', params)
}
//积分管理-积分获得修改
export const scIntegralGetedit = (params) => {
    return postRequest('/scIntegralGet/edit', params)
}

//积分管理-积分获取-即时生效
export const scIntegralGeteffect   = (params) => {
    return postRequest('/scIntegralGet/effect', params)
}
//积分管理-积分消费获取-查询
export const scIntegralExpenseByCondition = (params) => {
    return getRequest('/scIntegralExpense/getByCondition', params)
}
//积分管理-积分消费获取-添加
export const scIntegralExpenseAdd = (params) => {
    return postRequest('/scIntegralExpense/add', params)
}
// 积分消费修改
export const scIntegralExpenseEdit = (params) => {
    return postRequest('/scIntegralExpense/edit', params)
}
//积分管理-获取单条积分消费详情
export const scIntegralExpensegetDetail = (params) => {
    return getRequest('/scIntegralExpense/get/'+params.id, params)
}

//积分管理-积分消费获取-更新
export const scIntegralExpenseupdStatusById = (params) => {
    return postRequest('/scIntegralExpense/updStatusById', params)
}
//积分管理-积分消费获取-即时生效
export const scIntegralExpenseeffect   = (params) => {
    return postRequest('/scIntegralExpense/effect', params)
}
//积分管理-积分储值规则获取-查询
export const scStoredValueByCondition = (params) => {
    return getRequest('/scStoredValue/getByCondition', params)
}
//积分管理-积分储值获取-添加
export const scStoredValueAdd = (params) => {
    return postRequest('/scStoredValue/add', params)
}
//积分管理-积分储值获取-更新
export const scStoredValueupdStatusById = (params) => {
    return postRequest('/scStoredValue/updStatusById', params)
}
//积分管理-积分储值获取-即时生效
export const scStoredValueeffect   = (params) => {
    return postRequest('/scStoredValue/effect', params)
}
//积分管理-积分类型管理-查询
export const getScIntegralTypeByCondition = (params) => {
    return getRequest('/scIntegralType/getByCondition', params)
}
//积分管理-积分类型管理-更新
export const scIntegralTypeUpdate = (params) => {
    return postRequest('/scIntegralType/update', params)
}
//积分管理-积分清零类型管理-查询
export const getScIntegralCleanByCondition = (params) => {
    return getRequest('/scIntegralClean/getByCondition', params)
}
//积分管理-积分清零类型-添加
export const scIntegralCleanAdd = (params) => {
    return postRequest('/scIntegralClean/add', params)
}
//积分管理-积分清零类型-跟新
export const scIntegralCleanupdStatusById = (params) => {
    return postRequest('/scIntegralClean/updStatusById', params)
}

//获取企业信息
export const getScCompanyById = (id,params) => {
    return getRequest(`/scCompany/get/${id}`, params)
}
//企业-添加员工
export const scUserAdd = (params) => {
    return postRequest('/scUser/add', params)
}

export const addMoneyByIds = (params) => {
    return postRequest('/scUser/addMoneyByIds', params)
}
//企业信息-获取企业员工列表
export const getScCompanyUserBillStatistic = (params) => {
    return getRequest(`/scCompany/getUserBillStatistic`, params)
}
//企业信息-员工状态启用禁用
export const scUserUpdStatusById = (params) => {
    return postRequest('/scUser/updStatusById', params)
}
//企业信息-员工踢出
export const scCompanyKickOut = (params) => {
    return postRequest('/scCompany/kickOut', params)
}
//企业管理-获取员工列表
export const getScUserByCondition = (params) => {
    return getRequest(`/scUser/getByCondition`, params)
}
//门闸出入记录
export const scUserInOutRecordByCondition = (params) => {
    return getRequest(`/scUserInOutRecord/getByCondition`, params)
}


//获取员工的详细信息 包括 基本信息 + 角色信息 + 积分信息
export const getScUserById = (id,params) => {
    return getRequest(`/scUser/get/${id}`, params)
}
//更新员工信息
export const scUserUpdate = (params) => {
    return postRequest('/scUser/update', params)
}
//企业信息-员工消费查看
export const getScBillByCondition = (params) => {
    return getRequest(`/scBill/getByCondition`, params)
}
//轮播图添加
export const scSlideShowAdd = (params) => {
    return postRequest('/scSlideShow/add', params)
}
//轮播图更新
export const scSlideShowUpdate= (params) => {
    return postRequest('/scSlideShow/update', params)
}
//轮播图更新状态
export const scSlideShowupdStatusById= (params) => {
    return postRequest('/scSlideShow/updStatusById', params)
}
//轮播图更新置顶
export const scSlideShowupdTopStatusById= (params) => {
    return postRequest('/scSlideShow/updTopStatusById', params)
}

//轮播图查看
export const scSlideShowByCondition = (params) => {
    return getRequest(`/scSlideShow/getByCondition`, params)
}
//视频添加
export const scVideoAdd = (params) => {
    return postRequest('/scVideo/add', params)
}
//视频更新
export const scVideoUpdate= (params) => {
    return postRequest('/scVideo/update', params)
}
//视频更新状态
export const scVideoupdStatusById= (params) => {
    return postRequest('/scVideo/updStatusById', params)
}
//视频更新置顶
export const scVideoupdTopStatusById= (params) => {
    return postRequest('/scVideo/updTopStatusById', params)
}

//视频查看
export const scVideoByCondition = (params) => {
    return getRequest(`/scVideo/getByCondition`, params)
}
//通知添加
export const scNoticeAdd = (params) => {
    return postRequest('/scNotice/add', params)
}
//通知查看
export const scNoticeByCondition = (params) => {
    return getRequest(`/scNotice/getByCondition`, params)
}
//通知作废
export const scNoticeupdStatusById = (params) => {
    return postRequest('/scNotice/updStatusById', params)
}
//通知-即时生效
export const scNoticeeffect   = (params) => {
    return postRequest('/scNotice/effect', params)
}
//商铺管理
//商品分类 添加
export const scProductTypeAdd  = (params) => {
    return postRequest('/scProductType/add', params)
}
//商品分类 获取
export const scProductTypegetByParentId = (params) => {
    return getRequest(`/scProductType/getByParentId`, params)
}
//商品分类 删除
export const scProductTypedelByIds = (params) => {
    return postRequest(`/scProductType/delByIds`, params)
}
//商品分类 修改

export const scProductTypeedit = (params) => {
    return postRequest(`/scProductType/edit`, params)
}
//商品查询
export const scProductGgetByProductSearchVo = (params) => {
    return getRequest(`/scProduct/getByProductSearchVo`, params)
}
//商品添加 -餐饮-瑜伽

export const scProductAdd = (params) => {
    return postRequest(`/scProduct/add`, params)
}
// 商铺管理-商品管理-更新售罄状态
export const scProductUpdateSoldOutStatus = (params) => {
    return postRequest(`/scProduct/updateSoldOutStatus`, params)
}
// 商铺管理-商品管理-更新售罄状态
export const scProductUpdateShowStatus = (params) => {
    return postRequest(`/scProduct/updateShowStatus`, params)
}
//商铺管理-商品管理-获取商品详情
export const scProductGetDetailById= (params) => {
    return getRequest(`/scProduct/get/${params.id}`, {})
}
//商铺管理-商品管理-修改/scProduct/edit
export const scProductEdit = (params) => {
    return postRequest(`/scProduct/update`, params)
}
// 商铺管理-订单管理-查询
export const scOrderGetOrderManage = (params) => {
    return getRequest(`/scOrder/getOrderManage`, params)
}
// 商铺管理-订单管理-修改订单状态
export const orderUpdateOrderStatus = (params) => {
    return postRequest(`/scOrder/order/updateOrderStatus`, params)
}


//商铺管理-订单管理-修改订单状态
//vip卡查询
export const scProductFindVipCard = (params) => {
    return getRequest(`/scProduct/findVipCard`, params)
}
//企业结算-汇总信息
export const getscMonthSettleStatistic = (params) => {
    return getRequest(`/scMonthSettle/getStatistic`, params)
}

//企业结算-列表数据
export const getScMonthSettleByCondition = (params) => {
    return getRequest(`/scMonthSettle/getByCondition`, params)
}
//企业结算-处理操作
export const scMonthSettleSettle = (params) => {
    return postRequest(`/scMonthSettle/settle`, params)
}

//获取所有企业
export const getScCompanyAllCompany = (params) => {
    return getRequest(`/scCompany/getAllCompany`, params)
}
//获取所有商家
export const getScCompanygetAllMerchant = (params) => {
    return getRequest(`/scCompany/getAllMerchant`, params)
}
//商铺结算-汇总信息
export const getscShopMonthSettleStatistic = (params) => {
    return getRequest(`/scShopMonthSettle/getStatistic`, params)
}

//商铺结算-列表数据
export const getscShopMonthSettleByCondition = (params) => {
    return getRequest(`/scShopMonthSettle/getByCondition`, params)
}
//商铺结算-处理操作
export const scShopMonthSettleSettle = (params) => {
    return postRequest(`/scShopMonthSettle/settle`, params)
}

// 商铺管理-首页商品管理-商品查询
export const getHomePageProductByCondition = (params) => {
    return getRequest(`/scProduct/getHomePageProduct`, params)
}
//商铺管理-商品管理-更新推荐首页状态
export const updateHomePageStatus = (params) => {
    return postRequest(`/scProduct/updateHomePageStatus`, params)
}
//86日志管理-登录日志
export const getlogAllByPage = (params) => {
    return getRequest(`/log/getAllByPage`, params)
}
//获取所有scActivity/getAll
export const getAllByTypeData = (type,params) => {
    return getRequest(`/${type}/getAll`, params)
}
//获取商户所有商品分类
export const getAllByCompanyId = (params) => {
    return getRequest(`/scProductType/getAllByCompanyId`, params)
}
